<?php
/**
 * Created by PhpStorm.
 * User: fangwei
 * Date: 2019-09-12
 * Time: 22:31
 */

namespace App\Http\Controllers\Admin\View;


use App\Http\Controllers\Controller;
use App\Http\Repositories\Services\ISupplier;

class SupplierController extends Controller
{
    protected $supplierService;

    public function __construct(ISupplier $supplierService)
    {
        $this->supplierService = $supplierService;
    }

    public function create(){
        return view('admin.supplier.create');
    }

    public function update($id){
        $dao = $this->supplierService->byId($id);
        return view('admin.supplier.edit',compact('dao'));
    }

    public function index(){
        return view('admin.supplier.index');
    }



}